package cn.itsource.org.mapper;

import cn.itsource.org.domain.Employee;
import cn.itsource.org.domain.Shop;
import cn.itsource.org.domain.User;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 部门mapper
 */
public interface UserMapper extends Mapper<User> {

    @Select("select * from t_user where phone=#{phone}")
    User selectPhone(String phone);
    @Select("select * from t_user where email=#{email}")
    List<User> selectEmail(String email);
    @Select("select * from t_user where username=#{username} or phone=#{username} or email=#{username}")
    User selectUsername(String username);
}
